package main.java.com.manger.dao;

import com.manger.dto.Login;
import com.manger.dto.Page;
import com.manger.entity.Student;
import com.manger.entity.StudentKey;

import java.util.List;

public interface StudentMapper {
    int deleteByPrimaryKey(StudentKey key);

    int insert(Student record);

    int insertSelective(Student record);

    Student selectByPrimaryKey(StudentKey key);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    int deleteById(Integer id);

    Student findById(Integer id);

    List<Student> findAll(Page pag);

    Student login(Login login);

    Student findStudentByNo(Long no);

    List<Student> findStudentByKey(Long no);

  List<Student> findAllStudents();

    int  count();
}